﻿#ifndef WIDGET_H
#define WIDGET_H

#include "common/baseeditor.h"

namespace Ui {
class Widget;
}

class Widget : public BaseEditor
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

    void updateView();
    void generateMenu();
    void showSearchBox(const QString &kw);
    void drawColor(const QColor &color);

private slots:
    void on_search_returnPressed();
    void on_btn_clean_clicked();
    void on_tableView_doubleClicked(const QModelIndex &index);
    void on_btn_convert_clicked();

private:
    Ui::Widget *ui;

    QString convertTable;
    QString selectLabel;
};

#endif // WIDGET_H
